Skip to content

Add phone verification inputs - #723

Draft
oschwald wants to merge 2 commits into
mainfrom
greg/billing-phone-verification-inputs
Draft

oschwald wants to merge 2 commits into
mainfrom
greg/billing-phone-verification-inputs

Conversation

@oschwald

@oschwald oschwald commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

Adds three optional inputs to the Billing and Shipping request objects: phoneVerificationMethod (DELIVERED_CODE, NETWORK, OTHER), phoneWasVerificationSuccessful, and phoneVerificationTime (ZonedDateTime). They send phone_verification_method, phone_was_verification_successful, and phone_verification_time under /billing and /shipping. They describe the most recent verification of the phone number for that address.

The inputs live in AbstractLocation, which Billing and Shipping share. The PhoneVerificationMethod enum serializes with Locale.ROOT, so locales such as tr-TR do not change the values. Tests cover both objects, including omission of unset inputs. LocaleTest checks the new enum under tr-TR.

The branch has two commits:

  • Use Locale.ROOT for case conversions. Under tr and az default locales, existing enum values serialized with a dotless ı and the web service rejected them. The commit fixes every enum toString and the email address lowercasing in src/main, adds a tr-TR test, and updates the enum pattern in CLAUDE.md.
  • Add the phone verification inputs.

🤖 Generated with Claude Code

@coderabbitai

coderabbitai Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@oschwald
oschwald force-pushed the greg/billing-phone-verification-inputs branch from 6da1d90 to 996a418 Compare October 12, 2026 14:57
@oschwald oschwald changed the title Add billing phone verification inputs Add phone verification inputs Oct 12, 2026
@oschwald
oschwald force-pushed the greg/billing-phone-verification-inputs branch from 996a418 to 3ccabbc Compare October 12, 2026 15:01
oschwald and others added 2 commits October 12, 2026 16:20
Enum toString methods and email address cleaning called toLowerCase
with the default locale. In locales such as tr-TR and az-AZ, "I" becomes
a dotless "ı". Enum values then serialized as, for example,
"account_creatıon", and the web service rejected them. Email hashing
also produced a different MD5 for addresses that contain "I".

Use Locale.ROOT for these conversions. Add a test that runs them under
tr-TR.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add phoneVerificationMethod, phoneWasVerificationSuccessful, and
phoneVerificationTime to the request. Both /billing and /shipping accept
them. They describe the most recent verification of the phone number for
the address.

The inputs live in AbstractLocation, which Billing and Shipping share.
The PhoneVerificationMethod enum serializes with Locale.ROOT so that
locales such as tr-TR do not change the value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oschwald
oschwald force-pushed the greg/billing-phone-verification-inputs branch from 3ccabbc to cd97535 Compare October 12, 2026 16:21

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant